<div class="yuList" style="display: block;">
    <table class="table table-bordered">
        <thead>
            <tr>
                <th width="12%">车辆编号</th>
                <th width="10%">车型</th>
                <th width="6%">车牌号</th>
                <th width="6%">车主姓名</th>
                <th width="8%">车主电话</th>
                <th width="11%">渠道来源</th>
                <th width="6%">车辆类型</th>
                <?php if($status == 3):?>
                    <th width="6%">操作人</th>
                <?php endif;?>
                <?php if($status == 1):?>
                    <th width="12%">提交时间</th>
                <?php elseif($status == 2):?>
                    <th width="10%">下次跟踪时间</th>
                <?php else:?>
                    <th width="11%">处理时间</th>
                <?php endif;?>
                <th width="5%">操作</th>
            </tr>
        </thead>
        <tbody>    
        <volist name="list" id="vo" key="k">
            <tr>
                <td>{$vo.car_sno}</td>
                <td><a href="/Car/report/car_id/{$vo.car_id}" target="_blank">{$vo.car_model}</a></td>
                <td>{$vo.plate_number}</td>
                <td>{$vo.car_owner_name}</td>
                <td>{$vo.car_owner_phone}</td>
                <td>{$vo.come_from}</td>
                <td>{$vo.type_name}</td>
                <?php if($status == 3):?>
                    <td>{$vo.finish_emp_name}
                    </td>
                <?php endif;?>
                <?php if($status == 1):?>
                    <td>
                        {$vo.create_time}
                    </td>
                <?php elseif($status == 2):?>
                    <td>
                        {$vo.next_trace_time}
                    </td>
                <?php else:?>
                    <td>
                        {$vo.finish_time}
                    </td>
                <?php endif;?>

                <td>
                    <?php if($status != 3):?>
                        <a href="/RefundCar/refund_car_info?status={$status}&id={$vo.id}" target="_blank">退车</a>
                    <?php else:?>
                        <a href="/RefundCar/refund_car_info?status={$status}&id={$vo.id}" target="_blank">查看</a>
                    <?php endif;?>
                </td>
            </tr>
        </volist>
        </tbody>
    </table>
    <div class="pageFaye"><div class="pager">{$page}</div><div class="clear"></div></div>
</div>
<!--违约-->
<div class="chenggong1">
   <!-- <span class="paidan">您确定要置为违约吗?</span>-->
    <div class="shenhei-btn">
        <input type="hidden" name="order_id"  value="" />
        <input type="button" value="确定" class="determine" />
        <input type="button" value="取消" class="cancel" />
    </div>
</div>
<div class="yunBei"></div>
<script>
    $("#start_time").ymdateplugin({
        changeMonth: true,
        changeYear: true
    });

    $("#end_time").ymdateplugin({
        changeMonth: true,
        changeYear: true
    });
    function violate(order_id){
        $('.chenggong1').css('display', 'block');
        $('.yunBei').css({'display':'block',"zIndex":999});
        $('input[name=order_id]').val(order_id);
    }
    $(".determine").on('click', function () {
        var order_id = $('input[name=order_id]').val();
        var param = {
            'order_id':order_id
        };
        var btn_obj = $(this);
        btn_obj.val("提交中...").attr("disabled",'disabled');
        $.post('/Recheck/violate', param, function (data) {
            if (data.code == '200') {
                btn_alert(data.msg);
                $('.chenggong1').fadeOut();
                btn_obj.val("确定").removeAttr("disabled style");
                setTimeout(function () {
                        window.location.reload();
                    }, 500);
            } else {
                shibai_alert(data.msg)
                btn_obj.val("确定").removeAttr("disabled style");
                $('.chenggong1').fadeOut();
            }
            $('.yunBei').css({'display':'none',"zIndex":999});
        }, 'json');
    });
    $(".cancel").on('click', function () {
        $('.chenggong1').fadeOut();
        $('.yunBei').css({'display':'none',"zIndex":999});
    });
</script>